package com.zyh.annotation.demo2;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author zyh
 * @Date 2024/8/15 9:44
 * @Description
 *      RetentionPolicy.SOURCE 编译时期
 *      RetentionPolicy.CLASS   转为字节码时期
 *      RetentionPolicy.RUNTIME 运行时期
 */
@Cat
public class AnnotationDemo2 {
}

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@interface Cat {

}
